<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>尊敬的员工：{$nickname}</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=0">
		<meta content="yes" name="apple-mobile-web-app-capable">
		<link rel="stylesheet" href="/newstatic/css/project.css" />
		<script src="__PERSON__/js/jquery.min.js"></script>
		<script src="__PERSON__/js/zui.min.js"></script>
	</head>

	<body>
		<header>
			<div class="header center">
				<img src="/newstatic/img/logo.png" />
				<p>鑫诺洁家庭服务有限公司</p>
			</div>
		</header>
		<nav>
			<div class="nav1 active">
				<i class="iconfont">&#xe67e;</i>
				<p>客户留言</p>

			</div>
			<div class="nav2"  id="fltab">
				<i class="iconfont">&#xe695;</i>
				<p>客户详情</p>
			</div>
		</nav>
		<div class="part1_top">
			<img src="/newstatic/img/tou.jpg" />
			<p>{$nickname}</p>
			<p>美好的一天，从家居清洁开始</p>
		</div>
		<article class="part2 detail_one">
			<div>
				<p><if condition="$ord_info['contact'] neq ''">{$ord_info['contact']}<else/>{$ord_info['weixin_name']}</if></p>
				<p>{$ord_info['address']}</p>
				<p>联系电话： {$ord_info['telephone']}</p>
				<p>服务时间：{$ord_info['pbb_date_format']}</p>
				<p>订单次数:{$ord_info['service_num']}次</p>
				<span>已完成：<font id="wc">{$ord_info['service_num']}次</font></span>
				<a href="/welfarestaffsign?signtype=1&id={$ord_info['id']}" class="sdbtn-sign">签到</a>
				
				<br />
				<span>未完成：<font id="wwc">{$ord_info['service_num']}次</font></span>
				<a href="/welfarestaffsign?signtype=2&id={$ord_info['id']}" class="sdbtn-out">签退</a>
				<div id="flbox1">
					
				</div>
			</div>
		</article>
		<article class="part1 detail_tao">
			<textarea disabled="disabled" readonly="readonly" placeholder="{$ord_info['com_txt1']}"></textarea>
		</article>

	</body>
	<script type="text/javascript" src="/newstatic/js/detail.js"></script>

<script type="text/javascript">
			var od={$ord_info['orders_id']|default=0};
			var emp_id={$ord_info['emp_id']};
			$(document).ready(
				function (e){
				getfrommonth();
					$("#fltab").click(
						function (e){							
							getfrommonth();
						}
					);
						$("#flbox1").on('click','ul',function (e){
						window.location.href='/welfarestaffdetails?id='+$(this).attr('data');
					});
					<if condition="$ly gt 0">
			
		
				sessionStorage.setItem("from", ""); //销毁 from 防止在页面刷新 依然触发事件
			
		

					</if>
						
				}
			);
			
			function getfrommonth(){
									$("#flbox1").html('<ul><li><img src="/static/xloading.gif" style="opacity:0.4;filter:alpha(opacity=40);"/></li></ul>');
									$.ajax({
											type:'post',
											url:'/getpbbyord',
											dataType:'json',
											data:{od:od,emp_id:emp_id},
											success:function (d){
													//$("#wan").html(d['totalmoney_wan']+"元");
													//$("#nowan").html(d['totlemoney_nowan']+"元");
													$("#wc").html(d['total_wc']);
													$("#wwc").html(d['total_wwc']);
													$("#flbox1").html('');
													for(var i in d['pbblist']){
															var currow=d['pbblist'][i];
															var str='<ul data="'+currow['id']+'"><li>第'+currow['index_num']+'次</li><li>'+currow['ptimeformat']+'</li><li>'+currow['week']+'</li><li>'+currow['ptimeformat1']+'</li><li>'+currow['statustxt']+'</li></li>';
															$("#flbox1").append(str);
													}
											}
										}
										);
									}
		</script>